package com.nercel.dsj.gksales.service;

import com.nercel.dsj.gksales.model.ListResult;
import com.nercel.dsj.gksales.model.QueryParams;
import com.nercel.dsj.gksales.model.dto.ImportResultDTO;
import com.nercel.dsj.gksales.model.entity.User;

import java.io.File;
import java.util.List;

public interface UserService extends DaoBaseService<User, Integer>  {

    ListResult<User> listWithPaging(QueryParams queryParams);

    void updateRoles(Integer userId, List<Integer> roleIds);

    void addRoles(Integer userId, List<Integer> roleIds);

    void removeRoles(Integer userId, List<Integer> roleIds);

    User findByPhone(String phone);

    ImportResultDTO importFromExcel(File file, Integer userId, String level);

}
